package com.zhanghs.contentcenter.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author zhanghongshan
 * @date 2021/9/25 3:39 下午
 */
@Service
@Slf4j
public class TestService {

    @SentinelResource(value = "common")
    public String common(){
        log.info("common ...");
        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "common";
    }
}
